package com.fs;

import com.fs.pojo.User;
import com.fs.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Classname com.js.testUP
 * @Description TODO
 * @Date 2022/11/9 17:24
 * @Created by JiangMuyun
 */
@SpringBootTest
public class testUP {

    @Autowired
    private UserService userService;
    @Test
    public void test01(){
        User mu = userService.login("mu", "0258");
        System.out.println(mu);
    }
    @Test
    public void test02(){
        User mu = userService.findById(1280);
        System.out.println(mu);
    }

    @Test
    public void test03(){
        User mu = userService.regist("fq","3737");
        System.out.println(mu);
    }

    @Test
    public void test04(){
        User mu = userService.findById(1280);
        System.out.println(mu);
    }
}
